var nasa_ajax_setup=!0,nasa_countdown_init="0",changeDVnasa=768,img_loaded,check_img_loaded=0,img_loaded_array=[],_main_loaded=!1,_back_loaded=!0;jQuery(document).ready(function(a){"use strict";a("body").on("nasa_render_template",function(n,t){a(t).find("template").length&&a(t).find("template").each(function(){var n=a(this).html();a(this).replaceWith(n)}),n.preventDefault()}),a("body").on("mouseover",".nasa-has-tmpl",function(){var n=a(this);a("body").trigger("nasa_render_template",[n])}),a("body").on("nasa_before_init_menu_mobile",function(){a(".nasa-has-tmpl").length&&a(".nasa-has-tmpl").each(function(){a("body").trigger("nasa_render_template",[this])})}),"undefined"!=typeof nasa_countdown_l10n&&(a.countdown.regionalOptions[""]={labels:[nasa_countdown_l10n.years,nasa_countdown_l10n.months,nasa_countdown_l10n.weeks,nasa_countdown_l10n.days,nasa_countdown_l10n.hours,nasa_countdown_l10n.minutes,nasa_countdown_l10n.seconds],labels1:[nasa_countdown_l10n.year,nasa_countdown_l10n.month,nasa_countdown_l10n.week,nasa_countdown_l10n.day,nasa_countdown_l10n.hour,nasa_countdown_l10n.minute,nasa_countdown_l10n.second],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!0},a.countdown.setDefaults(a.countdown.regionalOptions[""])),load_count_down(a),init_variables_products(a),a("body").on("nasa_after_load_ajax",function(){loading_slick_element(a),nasa_compatible_jetpack(a),load_count_down(a),setTimeout(function(){init_variables_products(a),a(".nasa-product-content-variable-warp").length&&a(".nasa-product-content-variable-warp").each(function(){var n=a(this);a(n).hasClass("nasa-inited")||(a(n).addClass("nasa-inited"),change_content_product_variable(a,n,!1))})},100)}),a("body").on("nasa_after_changed_tab_content",function(){setTimeout(function(){init_variables_products(a),a(".nasa-product-content-variable-warp").length&&a(".nasa-product-content-variable-warp").each(function(){var n=a(this);a(n).hasClass("nasa-inited")||(a(n).addClass("nasa-inited"),change_content_product_variable(a,n,!1))})},100)}),a("body").on("nasa_after_load_ajax_timeout",function(){nasa_load_ajax_funcs(a)}),a("body").on("nasa_before_ajax_funcs",function(){loading_slick_element(a),load_count_down(a)}),a("body").on("click",".nasa-variants-before-click",function(){var n=a(this),t=a(n).parents(".product-item");if(a(n).hasClass("loading"))return!1;if(a(n).addClass("loading"),a(t).find(".nasa-variations-ux-after").length){if(a(t).find(".product-info-wrap").length&&!a(t).find(".product-info-wrap").hasClass("nasa-static-focus")&&a(t).find(".product-info-wrap").addClass("nasa-static-focus"),"undefined"!=typeof nasa_ajax_params&&"undefined"!=typeof nasa_ajax_params.wc_ajax_url){var e=nasa_ajax_params.wc_ajax_url.toString().replace("%%endpoint%%","nasa_call_variations_product"),s=a(n).attr("data-product_id");s&&a.ajax({url:e,type:"post",dataType:"json",cache:!1,data:{pid:s},beforeSend:function(){a(t).length&&a(t).find(".nasa-loader").length<=0&&a(t).append('
')},success:function(e){if("undefined"!=typeof e.empty&&"0"===e.empty){var i='";a(".nasa-variations-ux-after.nasa-product-"+s).replaceWith(i),a(".nasa-product-content-variable-warp").length&&a(".nasa-product-content-variable-warp").each(function(){var n=a(this);a(n).hasClass("nasa-inited")||(a(n).addClass("nasa-inited"),change_content_product_variable(a,n,!1))})}var o=a(t).find(".nasa-toggle-variants");a(o).length&&(a(o).hasClass("nasa-open")||a(o).addClass("nasa-open"));var r=a(t).find(".nasa-fog-variants");a(r).length&&(a(r).hasClass("nasa-open")||a(r).addClass("nasa-open")),a(t).find(".nasa-loader, .color-overlay, .nasa-dark-fog, .nasa-light-fog").remove(),a(n).removeClass("loading")},error:function(){a(t).find(".nasa-loader, .color-overlay, .nasa-dark-fog, .nasa-light-fog").remove(),a(n).removeClass("loading")}})}}else{var i=a(t).find(".nasa-toggle-variants");a(i).length&&(a(i).hasClass("nasa-open")||a(i).addClass("nasa-open"));var o=a(t).find(".nasa-fog-variants");a(o).length&&(a(o).hasClass("nasa-open")||a(o).addClass("nasa-open")),a(n).removeClass("loading")}}),a("body").on("click",".nasa-close-variants",function(){var n=a(this).parents(".product-item");if(a(n).length){var t=a(n).find(".nasa-toggle-variants");a(t).length&&a(t).removeClass("nasa-open");var e=a(n).find(".nasa-fog-variants");a(e).length&&a(e).removeClass("nasa-open")}}),a("body").on("nasa_after_click_select_option",function(n,t){if(n.preventDefault(),"undefined"!=typeof nasa_ajax_params&&"undefined"!=typeof nasa_ajax_params.wc_ajax_url){var e=nasa_ajax_params.wc_ajax_url.toString().replace("%%endpoint%%","nasa_call_variations_product"),s=a(t).attr("data-product_id");if(s){var i=a(t).parents(".product-item");a.ajax({url:e,type:"post",dataType:"json",cache:!1,data:{pid:s},beforeSend:function(){a(i).length&&a(i).find(".nasa-loader").length<=0&&a(i).append('')},success:function(n){"undefined"!=typeof n.empty&&"0"===n.empty&&(a(".nasa-variations-ux-after.nasa-product-"+s).replaceWith(n.variable_str),a(".nasa-product-content-variable-warp").length&&a(".nasa-product-content-variable-warp").each(function(){var n=a(this);a(n).hasClass("nasa-inited")||(a(n).addClass("nasa-inited"),change_content_product_variable(a,n,!1))}),a(t).removeClass("nasa-before-click")),a(i).find(".nasa-loader, .color-overlay, .nasa-dark-fog, .nasa-light-fog").remove()},error:function(){a(t).removeClass("nasa-before-click"),a(i).find(".nasa-loader, .color-overlay, .nasa-dark-fog, .nasa-light-fog").remove()}})}}}),a("body").on("nasa_after_click_quick_add",function(n,t){n.preventDefault();var e=a(t).parents(".product-item");a(e).addClass("nasa-modern-8-var-active")}),a(".nasa-static-group-btn > a[data-target]").length&&a(".nasa-static-group-btn > a[data-target]").each(function(){var n=a(this),t=a(n).attr("data-target");a(t).length?a(n).removeClass("hidden-tag"):a(n).remove()});var n=!1;a(window).on("scroll",function(){n||(a("body").trigger("nasa_load_slick_slider"),a("body").trigger("nasa_responsive_banners"),n=!0)}),nasa_ontouchstart()||a(window).on("mousemove",function(){n||(a("body").trigger("nasa_load_slick_slider"),a("body").trigger("nasa_responsive_banners"),n=!0)}),a("body").on("touchstart",".nasa-slick-slider",function(){n||(a("body").trigger("nasa_load_slick_slider"),a("body").trigger("nasa_responsive_banners"),n=!0)}),a("body").on("click",".nasa-nav-icon-slider",function(){var n=a(this),t=a(n).parents(".nasa-slider-wrap"),e=a(t).find(".nasa-slick-slider");if(a(e).length){var s=a(n).attr("data-do");switch(s){case"next":a(e).find(".slick-next").trigger("click");break;case"prev":a(e).find(".slick-prev").trigger("click")}}}),a("body").on("click",".nasa-nav-icon-slick",function(){var n=a(this),t=a(n).parents(".nasa-slider-wrap"),e=a(t).find(".nasa-nav-out");if(a(e).length){var s=a(n).attr("data-do");switch(s){case"next":a(e).find(".slick-arrow.slick-next").trigger("click");break;case"prev":a(e).find(".slick-arrow.slick-prev").trigger("click")}}}),a.fn.nasa_attr_ux_variation_form=function(){var n;return this.each(function(){var t=a(this);n=[],a(t).on("click",".nasa-attr-ux",function(e){e.preventDefault();var s=a(this),i=a(s).closest(".variation").length?a(s).closest(".variation").find("select"):a(s).closest(".value").find("select"),o=a(i).data("attribute_name")||a(i).attr("name"),r=a(s).data("value");return a(s).hasClass("nasa-disable")||a(s).hasClass("nasa-processing")||a(s).hasClass("nasa-processing-deal")?!1:(a(i).trigger("focusin"),a(i).find('option[value="'+r+'"]').length?(-1===n.indexOf(o)&&n.push(o),a(s).hasClass("selected")?(a(i).val(""),a(s).removeClass("selected"),delete n[n.indexOf(o)]):(a(s).addClass("selected").siblings(".selected").removeClass("selected"),a(i).val(r)),a(i).trigger("change"),void 0):(a(s).siblings(".nasa-attr-ux").removeClass("selected"),a(i).val("").trigger("change"),a(t).trigger("nasa_no_matching_variations",[s]),void 0))}).on("click",".reset_variations",function(){a(this).closest(".variations_form").find(".nasa-attr-ux.selected").removeClass("selected"),n=[]}).on("nasa_no_matching_variations",function(){var n="undefined"!=typeof wc_add_to_cart_variation_params?wc_add_to_cart_variation_params.i18n_no_matching_variations_text:a('input[name="nasa_no_matching_variations"]').val();window.alert(n)}).on("woocommerce_update_variation_values",function(){nasa_refresh_attrs(a,t)})})},a("body").on("before_init_variations_form",function(){a(".cart").length&&a(".cart").each(function(){var n=a(this),t=a(n).attr("data-type");"variable"!==t&&"variable-subscription"!==t||a(n).hasClass("variations_form")||(a(n).addClass("variations_form"),a(n).addClass("variations_form-3rd"),a(n).wc_variation_form(),nasa_refresh_attrs(a,n))})}),a("body").on("nasa_init_ux_variation_form",function(){a(".variations_form").length&&a(".variations_form").each(function(){var n=a(this);a(n).hasClass("nasa-attr-ux-form")||(a(n).addClass("nasa-attr-ux-form"),a(n).nasa_attr_ux_variation_form(),nasa_refresh_attrs(a,n))})}),a("body.nasa-label-attr-single").on("check_variations",function(){a(".nasa-attr-ux-form").length&&a(".nasa-attr-ux-form").each(function(){var n=a(this);a(n).find("table.variations tr").length&&a(n).find("table.variations tr").each(function(){var n=a(this),t=a(n).find(".label label"),e=a(n).find(".value select"),s=a(e).val(),i=!1;s&&(i=a(e).find('option[value="'+s+'"]').length?a(e).find('option[value="'+s+'"]').text():i),i?(a(t).find(".label-tip").length<=0&&a(t).append(''),a(t).find(".label-tip").html(i)):a(t).find(".label-tip").remove()})})}).on("reset_data",function(){a(".nasa-attr-ux-form").length&&a(".nasa-attr-ux-form").each(function(){a(this).find("td.label label .label-tip").remove()})}),a("body").on("ns_change_content_product_variable",function(){a(".nasa-product-content-variable-warp").length&&a(".nasa-product-content-variable-warp").each(function(){var n=a(this);a(n).hasClass("nasa-inited")||(a(n).addClass("nasa-inited"),change_content_product_variable(a,n,!1))})}).trigger("ns_change_content_product_variable"),a("body").on("click",".nasa-attr-ux-item",function(){nasa_img_clear_loaded(a);var n=a(this),t=a(n).parents(".nasa-product-content-child"),e=a(n).attr("data-act");if(!a(n).hasClass("nasa-disable")){a(t).find(".nasa-attr-ux-item").removeClass("nasa-active").attr("data-act","0"),"0"===e&&a(n).addClass("nasa-active").attr("data-act","1");var s=a(n).parents(".nasa-product-content-variable-warp");a(s).hasClass("nasa-inited")||a(s).addClass("nasa-inited"),change_content_product_variable(a,s,!0),setTimeout(function(){a("body").trigger("nasa_after_attr_ux_item_click",[n])},100)}}),a("body").on("click",".nasa-attr-ux-more",function(){var n=a(this).parents(".nasa-product-content-variable-warp");a(n).find(".nasa-attr-ux-more").remove(),a(n).find(".ux-item-more").removeClass("ux-item-more")}),a("body").on("click",".nasa-toggle-attr-select",function(){var n=a(this);a(n).hasClass("nasa-show")?(a(n).removeClass("nasa-show"),a(n).parents(".nasa-product-content-child").find(".nasa-toggle-content-attr-select").slideUp(200)):(a(n).addClass("nasa-show"),a(n).parents(".nasa-product-content-child").find(".nasa-toggle-content-attr-select").slideDown(200))});var t=!1;if(a("body").on("click","#nasa-init-viewed",function(){if(!t&&a("#nasa-viewed-sidebar-content").length&&"undefined"!=typeof nasa_ajax_params&&"undefined"!=typeof nasa_ajax_params.wc_ajax_url){t=!0;var n=nasa_ajax_params.wc_ajax_url.toString().replace("%%endpoint%%","nasa_viewed_sidebar_content");a.ajax({url:n,type:"post",dataType:"json",cache:!1,data:{},success:function(n){"undefined"!=typeof n.success&&"1"===n.success&&(a("#nasa-viewed-sidebar-content").replaceWith(n.content),a("#nasa-viewed-sidebar").find(".item-product-widget").length&&a("#nasa-viewed-sidebar").find(".nasa-sidebar-tit").removeClass("text-center"))},error:function(){}})}}),a("body").on("nasa_inited_slick",function(n,t){a("body").trigger("nasa_load_countdown"),a(t).find(".nasa-product-content-variable-warp").length&&a(t).find(".nasa-product-content-variable-warp").each(function(){var n=a(this);a(n).hasClass("nasa-inited")||(a(n).addClass("nasa-inited"),change_content_product_variable(a,n,!1))}),a(t).find(".nasa-banner-image").length&&a(t).on("afterChange",function(){a(t).find(".slick-slide").each(function(){var n=a(this);if(a(n).find(".banner-inner").length>0){var t=a(n).find(".banner-inner"),e=a(t).attr("data-animation");a(t).removeClass("animated").removeClass(e).removeAttr("style"),a(n).hasClass("slick-active")&&setTimeout(function(){a(t).show(),a(t).addClass("animated").addClass(e).css({visibility:"visible","animation-duration":"1s","animation-delay":"0ms","animation-name":e})},200)}})}),n.preventDefault()}),a("body").on("nasa_compatible_jetpack",function(){nasa_compatible_jetpack(a)}),a("body").on("nasa_before_pin_banners",function(){a("body").trigger("nasa_compatible_jetpack")}),a("body").on("nasa_element_slick_params",function(n,t,e){a(t).slick(e)}),a("body").on("nasa_load_slick_slider",function(){loading_slick_element(a)}),a("body").on("nasa_reload_slick_slider_private",function(n,t){a(t).length&&loading_slick_element(a,!0,t)}),a("body").on("nasa_reload_slick_slider",function(){loading_slick_element(a,!0)}),a("body").on("nasa_unslick",function(n,t){a(t).hasClass("slick-initialized")&&a(t).slick("unslick")}),a("body").on("nasa_refresh_slick",function(n,t){a(t).slick("refresh")}),a(".right-now .nasa-slick-slider").length&&loading_slick_element(a,!1,!1,!0),a("body").on("nasa_load_countdown",function(){load_count_down(a)}),a("body").on("nasa_rendered_template",function(){a("body").trigger("nasa_compatible_jetpack"),a("body").trigger("nasa_load_slick_slider"),a("body").trigger("nasa_load_countdown")}),a("body").on("nasa_after_quickview",function(){a("body").trigger("nasa_load_countdown")}),a("body").on("nasa_after_quickview_timeout",function(){loading_slick_element(a,!0,".product-lightbox"),a('form.cart input[name="quantity"]').length&&a(".product-lightbox .ev-dsc-qty").length&&a('form.cart input[name="quantity"]').trigger("change")}),a("body").on("nasa_after_push_cats_timeout",function(){a(window).trigger("resize")}),a("body").on("nasa_before_click_single_add_to_cart",function(n,t){var e=!1,s=!1;a(t).find(".nasa-ct-fields-toggle").length&&a(t).find(".nasa-ct-fields-toggle").hasClass("nasa-active")?(a(t).find(".nasa-ct-field .nasa-require").length&&(a(t).find(".nasa-ct-field .nasa-require").removeClass("nasa-error-first"),a(t).find(".nasa-ct-field .nasa-require").removeClass("nasa-error"),a(t).find(".nasa-ct-field .nasa-require").each(function(){var n=a(this);""===a(n).val()&&(e=!0,a(n).addClass("nasa-error"),s||(s=!0,a(n).addClass("nasa-error-first")))})),e?(a(t).find(".single_add_to_cart_button").hasClass("nasa-ct-disabled")||a(t).find(".single_add_to_cart_button").addClass("nasa-ct-disabled"),setTimeout(function(){a(t).find(".nasa-error-first").parents(".nasa-ct-field").find("label").trigger("click")},100)):a(t).find(".single_add_to_cart_button").removeClass("nasa-ct-disabled")):a(t).find(".single_add_to_cart_button").removeClass("nasa-ct-disabled"),n.preventDefault()}),a("body").on("click",".nasa-ct-fields-toggle",function(){a(".nasa-ct-fields-wrap").length&&(a(this).hasClass("nasa-active")?(a(this).removeClass("nasa-active"),a(".nasa-ct-fields-wrap").removeClass("nasa-active"),a('input[name="nasa-ct-fields-check"]').prop("checked",!1),a(".nasa-ct-fields-wrap").slideUp(200)):(a(this).addClass("nasa-active"),a(".nasa-ct-fields-wrap").addClass("nasa-active"),a('input[name="nasa-ct-fields-check"]').prop("checked",!0),a(".nasa-ct-fields-wrap").slideDown(200)))}),a(".nasa-ct-fields-add-to-cart").length&&a("#nasa-single-product-custom-fields").length){var e=a("#nasa-single-product-custom-fields").html();a(".nasa-ct-fields-add-to-cart").replaceWith(e)}a("body").on("nasa_after_quickview",function(){var n=a(".product-lightbox form.cart .nasa-ct-fields-add-to-cart");if(a(n).length){var t=a("#nasa-single-product-custom-fields").html();a(n).replaceWith(t)}a(".product-lightbox .nasa-sa-brands").length&&(a(".product-lightbox .star-rating").length?a(".product-lightbox .star-rating").addClass("nasa-has-sa-brands"):a(".product-lightbox .nasa-sa-brands").addClass("margin-top-10"),a(".product-lightbox .nasa-sa-brands").addClass("nasa-inited"))});var s=[],i=[];a("body").on("show_variation",function(n,t){var e="undefined"!=typeof nasa_quick_viewimg&&nasa_quick_viewimg&&a(".product-lightbox form.variations_form").length?a(".product-lightbox form.variations_form"):a(".product-page form.variations_form");if(a(e).length){if(a(e).find(".nasa-ct-fields-add-to-cart").length){var o=parseInt(a(e).find(".nasa-ct-fields-add-to-cart").attr("data-variation"));if(o){var r=a(e).find(".nasa-ct-fields-add-to-cart").clone();s[o]=r}}if("undefined"!=typeof t.nasa_custom_fields&&"undefined"!=typeof t.nasa_custom_fields.nasa_personalize&&"yes"===t.nasa_custom_fields.nasa_personalize){if("undefined"==typeof s[t.variation_id]&&(s[t.variation_id]="",a("#nasa-single-product-custom-fields").length)){var d=a("#nasa-single-product-custom-fields").html();s[t.variation_id]=d}a(e).find(".nasa-ct-fields-add-to-cart").length?(a(e).find(".nasa-ct-fields-add-to-cart").replaceWith(s[t.variation_id]),a(e).find(".nasa-ct-fields-add-to-cart").attr("data-variation",t.variation_id)):a(e).find("table.variations").length&&(a(e).find("table.variations").after(s[t.variation_id]),a(e).find(".nasa-ct-fields-add-to-cart").attr("data-variation",t.variation_id))}else a(e).find(".nasa-ct-fields-add-to-cart").remove();if("undefined"!=typeof t.nasa_custom_fields&&"undefined"!=typeof t.nasa_custom_fields.dsct_allow&&"1"===t.nasa_custom_fields.dsct_allow){var l=a(e).parents(".product-info"),c=a(l).find(".nasa-variation-bulk-dsct");if(a(c).length)if("undefined"==typeof i[t.variation_id]){if("undefined"!=typeof nasa_ajax_params&&"undefined"!=typeof nasa_ajax_params.wc_ajax_url){var f=nasa_ajax_params.wc_ajax_url.toString().replace("%%endpoint%%","nasa_render_bulk_dsct_variation");a.ajax({url:f,type:"post",dataType:"json",cache:!1,data:{product_id:t.variation_id},success:function(n){"undefined"!=typeof n.success&&"1"===n.success&&(i[t.variation_id]=n.content,a(c).html(n.content),a(c).fadeIn(),a(l).find('input[name="quantity"]').trigger("change"))},error:function(){}})}}else a(c).html(i[t.variation_id]),a(c).fadeIn(),a(l).find('input[name="quantity"]').trigger("change");if("undefined"!=typeof t.nasa_custom_fields.dsct_badge&&""!==t.nasa_custom_fields.dsct_badge){var _=a(e).parents(".nasa-product-details-page");if(a(_).length){a(_).find(".product-gallery .nasa-badges-wrap").length<=0&&a(_).find(".product-gallery").prepend('');var p=a(_).find(".product-gallery .nasa-badges-wrap");a(p).find(".bulk-label").length<=0&&a(p).append(t.nasa_custom_fields.dsct_badge)}}}else{var l=a(e).parents(".product-info"),c=a(l).find(".nasa-variation-bulk-dsct");a(c).length&&(a(c).fadeOut(),a(c).html("")),a(l).find(".price.nasa-bulk-price").remove(),a(l).find(".price.nasa-single-product-price").show(),t.price_html&&a(l).find(".woocommerce-variation-price").length&&a(l).find(".wcsatt-options-wrapper").length<=0&&a(l).find(".woocommerce-variation-price").html(t.price_html);var _=a(e).parents(".nasa-product-details-page");if(a(_).length&&a(_).find(".nasa-badges-wrap").length){var p=a(_).find(".nasa-badges-wrap");a(p).find(".bulk-label").length&&a(p).find(".bulk-label").remove()}}}n.preventDefault()}).on("reset_data",function(){var n="undefined"!=typeof nasa_quick_viewimg&&nasa_quick_viewimg&&a(".product-lightbox form.variations_form").length?a(".product-lightbox form.variations_form"):a(".product-page form.variations_form");if(a(n).length){if(a(n).find(".nasa-ct-fields-add-to-cart").length){var t=parseInt(a(n).find(".nasa-ct-fields-add-to-cart").attr("data-variation"));if(t){var e=a(n).find(".nasa-ct-fields-add-to-cart").clone();s[t]=e}}a(n).find(".nasa-ct-fields-add-to-cart").remove();var i=a(n).parents(".product-info"),o=a(i).find(".nasa-variation-bulk-dsct");a(o).length&&(a(o).fadeOut(),a(o).html("")),a(i).find(".price.nasa-bulk-price").remove(),a(i).find(".price.nasa-single-product-price").show();var r=a(n).parents(".nasa-product-details-page");if(a(r).length&&a(r).find(".nasa-badges-wrap").length){var d=a(r).find(".nasa-badges-wrap");a(d).find(".bulk-label").length&&a(d).find(".bulk-label").remove()}}}),a("body").on("init_nasa_tabs_not_set",function(){nasa_tabs_not_set(a)}),a(".nasa-tabs-not-set").length&&a("body").trigger("init_nasa_tabs_not_set"),a("body").on("mouseover",".nasa-tip",function(){var n=a(this);if(!a(n).hasClass("nasa-tiped")){a(n).addClass("nasa-tiped");var t=a(".nasa-check-reponsive.nasa-switch-check").length&&1===a(".nasa-check-reponsive.nasa-switch-check").width()?!0:!1;if(!t){var e=a(n).attr("data-tip")||a(n).attr("title");a(n).hasClass("add-to-cart-grid")?a(n).hasClass("add-to-cart-grid")&&a(n).parents(".nasa-modern-3").length?e&&(a(n).append(''+e+""),a(n).removeClass("nasa-tip-left"),a(n).removeClass("nasa-tip-right"),a(n).removeClass("nasa-tip-bottom"),a(n).addClass("nasa-tip-left")):(a(n).parents(".nasa-hoz-buttons").length||a(n).parents(".nasa-modern-1").length||a(n).parents(".nasa-modern-5").length||a(n).parents(".nasa-masonry-item").length)&&e&&(a(n).append(''+e+""),a(n).removeClass("nasa-tip-left"),a(n).removeClass("nasa-tip-right"),a(n).removeClass("nasa-tip-bottom")):e&&(a(n).append(''+e+""),(a(n).parents(".nasa-hoz-buttons").length||a(n).parents(".nasa-modern-1").length||a(n).parents(".nasa-modern-5").length||a(n).parents(".nasa-masonry-item").length)&&(a(n).removeClass("nasa-tip-left"),a(n).removeClass("nasa-tip-right"),a(n).removeClass("nasa-tip-bottom"),(a(n).parents(".nasa-modern-1").length||a(n).parents(".nasa-modern-5").length)&&a(n).hasClass("btn-wishlist")&&a(n).addClass("nasa-tip-left"))),a(n).removeAttr("title")}}}),a("body").on("slick_go_to_0",function(n,t){a(t).hasClass("slick-initialized")&&a(t).slick("slickGoTo",0),n.preventDefault()});var o=[];a("body").on("click",".ev-dsc-qty",function(){var n=a(this),t=a(n).attr("data-qty"),e=a(n).parents(".product-info");a(n).hasClass("actived")||a(".ev-dsc-qty").removeClass("actived"),a(e).find('input[name="quantity"]').val(t).trigger("change");var s=a(n).parents(".nasa-dsc-wrap");a(s).length&&a(s).hasClass("nasa-dsc-mobile-quick-add")&&a(e).find(".ns-single-add-btn").trigger("click")}),a("body").on("click",".ev-dsc-quick-add",function(){var n=a(this),t=a(n).parents(".ev-dsc-qty-wrap"),e=a(t).find(".ev-dsc-qty"),s=a(n).parents(".product-info");a(e).trigger("click"),a(s).find(".ns-single-add-btn").trigger("click")}),a("body").on("change",'input[name="quantity"]',function(){var n=a(this),t=a(n).parents(".product-info");if(a(t).find(".ev-dsc-qty").length){var e=parseFloat(a(n).val()),s=[];if(a(t).find(".ev-dsc-qty").each(function(){s.push(parseFloat(a(this).attr("data-qty")))}),s.length){s.sort(function(a,n){return a-n}).reverse();for(var i=0;i